-
Notifications
You must be signed in to change notification settings - Fork 7
Refactor: remove a useless loop #949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
|
||
| <a class="fr-btn fr-icon-arrow-right-line fr-btn--icon-right" | ||
| href="{% url 'petition_project_instructor_dossier_complet_view' petition_project.reference %}">Voir le dossier complet</a> | ||
| <section class="fr-my-3w" id="moulinette-regulation-result"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai simplement supprimé les deux lignes {% for … %} {% if regulation.slug… %}. Le reste du diff est simplement la mise à jour de l'identation du template.
pyDez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
➿
numahell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
T'as dû le voir, il y a un test e2e qui plante sur la régulation espèces protégées.
841a889 to
1a155a1
Compare
Il y avait une boucle inutile dans le template, dont le seul but était de sélectionner une des réglementations de la liste.